package com.ruoyi.ams.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 实物信息变更对象 ams_asset_info_change
 * 
 * @author yfkj
 * @date 2022-05-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AmsAssetInfoChange
{
    private static final long serialVersionUID = 1L;
    /** 实物信息变更表主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long assetInfoChangeId;
    /** 编号 */
    @Excel(name = "编号")
    @TableField(exist = true)
    @ApiModelProperty(value =  "编号")
    private String sn;
    /** 流程表主键 */
    @Excel(name = "流程表主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "流程表主键")
    private Long processId;

    /** 资产主键 */
    @Excel(name = "资产主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产主键")
    private Long assetId;
    @TableField(exist = false)
    @ApiModelProperty(value =  "资产Code")
    private String assetCode;
    @TableField(exist = false)
    @ApiModelProperty(value =  "资产类型名称")
    private String assetTypeName;

    /** 变更时间 */
    @Excel(name = "变更时间")
    @TableField(exist = true)
    @ApiModelProperty(value =  "变更时间")
    private Long changeTime;
    @TableField(exist = false)
    @ApiModelProperty(value =  "变更时间字符串")
    private String changeTimeStr;

    /** 变更处理人主键 */
    @Excel(name = "变更处理人主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "变更处理人主键")
    private Long chargerId;
    @TableField(exist = false)
    @ApiModelProperty(value =  "变更处理人姓名")
    private String chargerName;

    /** 备注 */
    @Excel(name = "备注")
    @TableField(exist = true)
    @ApiModelProperty(value =  "备注")
    private String remark;
    /** 状态 */
    @Excel(name = "状态")
    @TableField(exist = true)
    @ApiModelProperty(value =  "状态（1变更不通过、0变更申请中、2变更成功）")
    private String status;

    public static final String ASSET_INFO_CHANGE_ID="asset_info_change_id";
    public static final String SN="sn";
    public static final String PROCESS_ID="process_id";
    public static final String ASSET_ID="asset_id";
    public static final String CHANGE_TIME="change_time";
    public static final String CHARGER_ID="charger_id";
    public static final String REMARK="remark";
    public static final String STATUS="status";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assetInfoChangeId", getAssetInfoChangeId())
            .append("sn", getSn())
            .append("processId", getProcessId())
            .append("assetId", getAssetId())
            .append("changeTime", getChangeTime())
            .append("chargerId", getChargerId())
            .append("remark", getRemark())
            .append("status", getStatus())
            .toString();
    }
}
